package com.houseman.workFlow.dao;

import com.houseman.workFlow.bean.WorkFlowBean;

public interface WorkFlowDao {

	/**
	 * 获取流程信息
	 * @param workId
	 * @return
	 * @throws Exception
	 */
	public WorkFlowBean getWorkFlowInfo(int workId) throws Exception;
	
	/**
	 * 启动流程，保存流程信息
	 * @param info
	 * @throws Exception
	 */
	public int startWorkFlow(WorkFlowBean info) throws Exception;
	
	/**
	 * 修改流程一下已办理信息
	 * @param workId
	 * @param step
	 * @param approve
	 * @throws Exception
	 */
	public void updateNextStepInfo(WorkFlowBean info) throws Exception;
	
	/**
	 * 关闭流程
	 * @param GRAPHID
	 * @throws Exception
	 */
	public void closeWorkFlow(int workId) throws Exception; 
	
}
